package com.and9.mchen.mcmusic.dao.factory;

import com.and9.mchen.mcmusic.dao.IAlbumDao;
import com.and9.mchen.mcmusic.util.EntityHelper;

public class AlbumDaoFactory {

	private IAlbumDao albumDao = null;
	private static AlbumDaoFactory instance = new AlbumDaoFactory();
	
	private  AlbumDaoFactory(){
		albumDao=(IAlbumDao) EntityHelper.createDaoByProperty("IAlbumDaoClass");
	}
	public static AlbumDaoFactory getInstance(){
		return instance;
	}
	public IAlbumDao getAlbumDao(){
		return albumDao;
	}
	
}
